package com.atzzy.ysmall.ysmall_mapper;

import com.atzzy.ysmall.ysmall_beans.ProductSku;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @Author JAVAZeng
 * @Date 2022/3/3 18:54
 * @Version 1.0
 */
@Mapper
@Repository
public interface ProductSkuMapper {
    List<ProductSku> selectProductSku(Integer productId);
    List<ProductSku> selectAllProductSku(String productId);
    int updateProductSkuNum(@Param("skuId") String skuId,@Param("stock") int stock);
    ProductSku selectProSkuBySkuId(@Param("skuId") String skuId);
    List<ProductSku> selectLowerestPriceByProductId(@Param("productId") String productId);
}
